home *** CD-ROM | disk | FTP | other *** search
/ Best of www.BestZips.com (Collector's Edition) / Best of WWW.BESTZIPS.COM Collector's Edition (JCSM Shareware) (JCS Marketing).ISO / prgtools / pctt76.zip / PDGREPPE.DEF < prev    next >
Text File  |  1996-06-02  |  2KB  |  119 lines

  1. ;PDGREPPE Sample Pattern Definitions
  2.  
  3. ;Intelligence Services, GPO Box 9, Adelaide SA 5001, AUSTRALIA
  4. ;Copyright (c) 1996 (1416 A.H.)
  5.  
  6. ;word start
  7.  
  8. word        <\W+>
  9. non_word_seq    [^\W]+
  10. repeated_word    (@word)@non_word_seq{=0�}
  11. ;case insensitive
  12. repeated_wordi    :i@rep_word:o
  13.  
  14. ;word end
  15.  
  16. ;case sensitive start
  17.  
  18. cap_word    <\u\W*>
  19. all_cap_word    <\u+>
  20. all_low_word    <\l+>
  21.  
  22. cap_name    <\u\l*>
  23.  
  24. month_start    {\
  25. <Jan|\
  26. <Feb|\
  27. <Mar|\
  28. <May|\
  29. <Apr|\
  30. <Jun|\
  31. <Jul|\
  32. <Aug|\
  33. <Sep|\
  34. <Oct|\
  35. <Nov|\
  36. <Dec\
  37. }
  38.  
  39. tri_letter_month    @month_start>
  40.  
  41. number123_names        <one>|<two>|<three>
  42. number_names        @number123_names|<four>|<five>|<six>|<seven>|<eight>|<nine>|<ten>
  43.  
  44. day_start        <mon|<tue|<wed|<thu|<fri|<sat|<sun
  45. tri_letter_day        @day_start>
  46.  
  47. complete_day        {<mon|<tues|<wednes|<thurs|<fri|<satur|<sun}day
  48.  
  49. ;case sensitive end
  50.  
  51. ;case insensitive start
  52.  
  53. i_month_start    :i@month_start:o
  54.  
  55. i_tri_letter_month    :i@tri_letter_month:o
  56.  
  57. i_number123_names    :i@number123_names:o
  58. i_number_names        :i@number_names:o
  59.  
  60. i_day_start        :i@day_start:o
  61. i_tri_letter_day    :i@tri_letter_day:o
  62.  
  63. i_complete_day        :i@complete_day:o
  64.  
  65. ;case insensitive end
  66.  
  67. ;number sequences start
  68.  
  69. numseqpat    {-|\+}?[\d]+
  70. nseq        @numseqpat
  71. floatpat    {-|\+}?{[\d]+\.[\d]*|[\d]*\.[\d]+}
  72. flot        @floatpat
  73. exponpat    {@floatpat|@numseqpat}[eE]{@floatpat|@numseqpat}
  74. expon        @exponpat
  75. moneypat    {-|\+}?[\d]*\.[\d][\d]{[\d]!&[eE]!}
  76. mony        @moneypat
  77.  
  78. ;number sequences end
  79.  
  80. ;DOS Batch file parameter Equivalents start
  81.  
  82. @CommaChar    ,
  83. @CC        ,
  84. @SemiColonChar    ;
  85. @SCC        ;
  86. @EqualChar    =
  87. @EQC        =
  88.  
  89. ;DOS Batch file parameter Equivalents end
  90.  
  91. AdvBy1OfAnyUpTo PARAM {{PARAM}!.}*:aPARAM
  92.  
  93. ;USED for readme.exe of PC TEXTOOLS start
  94.  
  95. Consonant        [\C]
  96. NotConsonant        [^\C]
  97. ConsonantNotUpper    [\C^\u]
  98.  
  99. ;Magic Characters are any of : [^$[].(){}<>#%+*?!&|`'@:,]
  100.  
  101. ;Valid as a literal string only if NOT using option -E
  102. MagicCharsEscaped    \[\^\$\[\]\.\(\)\{\}\<\>\#\%\+\*\?\!\&\|\`\'\@\:\,\]
  103.  
  104. ;Valid as a literal string only if using option -E
  105. MagicChars        [^$[].(){}<>#%+*?!&|`'@:,]
  106.  
  107. ;SimpleLowerCaseWords
  108. SLCW    <[a-z]+>
  109.  
  110. ;my favourite fruits
  111. fruit    apple|\
  112.     orange|\
  113.     banana
  114.  
  115. ;lunch time!    I will have it on Rye bread please
  116.  
  117. bread    type    I will have it on type bread please
  118.  
  119. ;USED for readme.exe of PC TEXTOOLS end